<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>紅色主題書籤</title>
    <style>
        body {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background-color: #f0f0f0;
            margin: 0;
            font-family: "Microsoft YaHei", sans-serif;
        }
        .bookmark-container {
            width: 15cm;
            height: 6cm;
            perspective: 1000px;
        }
        .bookmark {
            width: 100%;
            height: 100%;
            position: relative;
            transform-style: preserve-3d;
            transition: transform 0.8s;
            cursor: pointer;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }
        .bookmark.flipped {
            transform: rotateY(180deg);
        }
        .bookmark-front, .bookmark-back {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            border-radius: 10px;
            overflow: hidden;
            box-sizing: border-box;
        }
        /* 正面設計 */
        .bookmark-front {
            background: linear-gradient(135deg, #8B0000 0%, #B22222 50%, #8B0000 100%);
            border: 3px solid #FFD700;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 10px;
            text-align: center;
            color: #FFD700;
        }
        .front-title {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 15px;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
        }
        .front-art {
            font-size: 60px;
            margin: 10px 0;
        }
        .front-quote {
            font-size: 16px;
            font-style: italic;
            padding: 0 10px;
        }
        .ribbon {
            position: absolute;
            top: -5px;
            left: 50%;
            transform: translateX(-50%);
            width: 80%;
            height: 10px;
            background-color: #FFD700;
            border-radius: 5px;
        }
        /* 背面設計 */
        .bookmark-back {
            background: linear-gradient(135deg, #B22222 0%, #8B0000 100%);
            border: 3px solid #FFFFFF;
            transform: rotateY(180deg);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: #FFFFFF;
            padding: 15px;
            text-align: center;
        }
        .back-title {
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 15px;
            color: #FFD700;
        }
        .back-content {
            font-size: 14px;
            line-height: 1.6;
        }
        .back-poem {
            font-family: "KaiTi", serif;
            margin: 15px 0;
            font-size: 16px;
        }
        .back-art {
            font-size: 40px;
            margin: 10px 0;
        }
        .instruction {
            position: absolute;
            bottom: 10px;
            font-size: 12px;
            color: #CCCCCC;
            font-style: italic;
        }
    </style>
</head>
<body>
    <div class="bookmark-container">
        <div class="bookmark" id="bookmark">
            <div class="bookmark-front">
                <div class="ribbon"></div>
                <div class="front-title">銘記歷史 繼往開來</div>
                <div class="front-art">🇨🇳 ⚔️ 🌟</div>
                <div class="front-quote">“人民英雄永垂不朽”</div>
                <div class="instruction">點擊書籤翻頁</div>
            </div>
            <div class="bookmark-back">
                <div class="back-title">紅色精神代代傳</div>
                <div class="back-content">
                    <p>以繪畫、剪紙、書法等形式，</p>
                    <p>銘記抗戰英雄事跡，</p>
                    <p>弘揚紅色革命精神。</p>
                </div>
                <div class="back-poem">山河為證，歲月為名。<br>英雄血染旗幟紅。</div>
                <div class="back-art">🎖️ 🕊️ 📖</div>
                <div class="instruction">點擊書籤翻頁</div>
            </div>
        </div>
    </div>

    <script>
        document.getElementById('bookmark').addEventListener('click', function() {
            this.classList.toggle('flipped');
        });
    </script>
</body>
</html>
